<?php
$pass = '';
if(!empty($this->params['pass'])){
	$pass = $this->params['pass'][0];
}
$html->addCrumb('Manager','/manager/');
$html->addCrumb('Unternehmen verwalten','/manager/companies/');
$html->addCrumb('Unternehmen verändern','/manager/companies/update/'.$pass,array('escape'=>false));

echo  $this->element('tasks',array('target'=>'/manager/companies'));
?>
<div class="title">Unternehmen ändern</div>

<?php echo $this->element('flashMessage') ?>

<?php
echo $this->Form->create('Company',array('class'=>'form','action'=>'update'));

echo $this->Form->input('company_name',array('label'=>'Name:'));
echo $this->Form->input('adress',array('label'=>'Strasse:'));
echo $this->Form->input('street_number',array('label'=>'Haus-Nr.:'));
echo $this->Form->input('zip_code',array('label'=>'Plz:'));
echo $this->Form->input('city',array('label'=>'Stadt:'));
echo $this->Form->input('phone_number',array('label'=>'Telefon:'));
echo $this->Form->input('pob',array('label'=>'Postfach:'));
echo $this->Form->input('free_text',array('label'=>'Notizen:','type'=>'textarea'));

echo '<div class="form_div_buttons">';
echo '<input type="submit" name="Anlegen" value="Ändern">';
echo '<a href="'.URL_PREFIX.$referer.'"><button>Abbrechen</button></a>';
echo '</div>';

echo $this->Form->end();

?>
